package org.whale.springcloud.eureka.user.client.controller;

import com.google.common.collect.Maps;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.whale.springcloud.eureka.common.entity.JsonResponse;
import org.whale.springcloud.eureka.user.client.service.UserService;

@RestController
@RequestMapping("/userClient")
public class UserController {

  @Autowired private UserService userService;

  @RequestMapping("/queryUserInfo")
  public JsonResponse<String> queryUserInfo() {

    return userService.queryUserInfo(Maps.newHashMap());
  }
}
